﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Ciripescu_WebRole
{
    public class BasePageAnonAndContent : System.Web.UI.Page
    {
        public BasePageAnonAndContent()
        {
            this.PreInit += new System.EventHandler(ChangeMasterPage);
        }

        private void ChangeMasterPage(object sender, System.EventArgs args)
        {
            if (Session["UserName"] == null)
                MasterPageFile = "~/Master/anon.master";
            else
                MasterPageFile = "~/Master/continut.master";
        }
    }
}
